﻿
using System;
using System.Collections;

namespace Xacml.Core.Policy
{
  public class RuleCollection : RuleCollectionReadWrite
  {
    public RuleCollection(RuleCollectionReadWrite items)
    {
      foreach (RuleElementReadWrite elementReadWrite in (CollectionBase) items)
        this.List.Add((object) new RuleElement(elementReadWrite.Id, elementReadWrite.Description, elementReadWrite.Target, elementReadWrite.Condition, elementReadWrite.Effect, elementReadWrite.SchemaVersion));
    }

    public RuleCollection()
    {
    }

    public override void Clear()
    {
      throw new NotSupportedException();
    }

    public override void RemoveAt(int index)
    {
      throw new NotSupportedException();
    }
  }
}
